package com.computercourse.order.dao;

import com.computercourse.framework.domain.learning.CicLearningCourse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
 public interface CicLearningCourseRepository extends JpaRepository<CicLearningCourse, String> {

    //根据用户和课程查询选课记录，用于判断是否添加选课
    CicLearningCourse findCicLearningCourseByUserIdAndCourseId(String userId, String courseId);

}